/**
 * 
 */
package com.google.code.sip.ucenter.model;

import java.util.Date;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.annotations.Reference;

/**
 * 积分规则日志实体类
 * 
 * @author Liuye
 * 
 */
@SuppressWarnings("serial")
@Entity(noClassnameStored = true)
public class CreditRuleLog extends BaseEntity {
	/**
	 * 用户
	 */
	@Reference
	private User user;
	/**
	 * 积分规则
	 */
	@Reference
	private CreditRule creditRule;

	/**
	 * 积分规则奖励总次数
	 */
	private int total;

	/**
	 * 当日奖励次数
	 */
	private int cycleNum;

	/**
	 * 最后的积分规则奖励日期
	 */
	@Indexed
	private Date dateLine;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public CreditRule getCreditRule() {
		return creditRule;
	}

	public void setCreditRule(CreditRule creditRule) {
		this.creditRule = creditRule;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getCycleNum() {
		return cycleNum;
	}

	public void setCycleNum(int cycleNum) {
		this.cycleNum = cycleNum;
	}

	public Date getDateLine() {
		return dateLine;
	}

	public void setDateLine(Date dateLine) {
		this.dateLine = dateLine;
	}

}
